Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[procrunner] avoid waiting for processes forever #65909

Merged
merged 4 commits into from
May 11, 2020

Conversation

spalger
Copy link
Contributor

@spalger spalger commented May 8, 2020

When we use the proc runner to wait for a process to log a specific line before considering it "started", it will wait until the process exits. Doing that has caused issues on CI where in some cases Kibana never is "ready", so we should apply a timeout that kills the process after some time (rather than relying on Jenkins to destroy the workers after 2 hours).

This adds a default waitTimeout for proc.run() calls that specify a wait expressions of 15 minutes. This should give any usage enough time to get started, but can be extended by passing an alternate waitTimeout, or setting waitTimeout: false

@spalger
Copy link
Contributor Author

spalger commented May 11, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger marked this pull request as ready for review May 11, 2020 17:26
@spalger spalger requested a review from a team as a code owner May 11, 2020 17:26
@spalger spalger added Team:Operations Team label for Operations Team v7.7.0 v7.8.0 v8.0.0 labels May 11, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger added the release_note:skip Skip the PR/issue when compiling release notes label May 11, 2020
Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spalger spalger merged commit cbe5597 into elastic:master May 11, 2020
spalger pushed a commit to spalger/kibana that referenced this pull request May 11, 2020
# Conflicts:
#	packages/kbn-pm/dist/index.js
spalger pushed a commit to spalger/kibana that referenced this pull request May 11, 2020
# Conflicts:
#	packages/kbn-pm/dist/index.js
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label May 13, 2020
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label May 13, 2020
@spalger spalger deleted the implement/proc-runner-timeout branch May 13, 2020 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.7.0 v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants